<extend name="../Public/model" />
<block name="title">添加{$TITLE}</block>
<block name="body">
    <form class="form form-horizontal form-validate" id="form-ajax-Form" method="post">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">上级菜单：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <span class="select-box wp30">
                    <select class="select" name="parent_id">
                        <option value="0">顶级菜单</option>
                         <volist name="menus" id="info">
                             <option value="{$info.menu_id}" <eq name="info.menu_id" value="$parent_id">selected="selected"</eq>>{$info.menu_name}</option>
                         </volist>
                    </select>
                </span>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>菜单名称：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" name="menu_name" datatype="*" nullmsg="模块名称不能为空">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>应用名称：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" name="app" datatype="*" nullmsg="应用名称不能为空">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>控制器名称：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" name="controller" datatype="*" nullmsg="控制器名称不能为空">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>方法名称：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" name="action" datatype="*" nullmsg="方法名称不能为空">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">菜单图标：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text wp30" name="icon">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>排序：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <input type="text" class="input-text" datatype="*1-3" nullmsg="排序不能为空" id="sort" name="sort">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>状态：</label>
            <div class="formControls col-xs-8 col-sm-8">
                <span class="select-box wp30">
                    <select name="status" class="select">
                        <option value="1" selected="">显示</option>
                        <option value="0">隐藏</option>
                    </select>
				</span>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</block>